package Lesson5;

/**
 * Created by trimmm on 10.02.15.
 */
public class Main {
    public static void main(String[] args) {

        Hero myHero = new Hero();
        Monster evilMonster = new Monster();

        myHero.watchWords();
        evilMonster.watchWords();

        System.out.println("Battle begin!");

        for (int i = 0; i < 5; i++){

            evilMonster.attack(myHero);
            System.out.println("Hero health - " + myHero.GetHealth());

        }

        if (myHero.GetHealth() < 20) {
            System.out.println("Hero almost dead!!!");
        } else {
            System.out.println("Hero defeated monster!!!");
        }

        HeroAsistant asistant = new HeroAsistant();

        asistant.cure(myHero);
        System.out.println("Hero health - " + myHero.GetHealth());
    }
}
